package Text2;

import java.util.*;

public class Main {
    static int N = 1010;
    static int[] f = new int[N];
    static int[] books = {0, 10, 20, 50, 100};

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        f[0] = 1;
        for (int i = 1; i <= 4; i++) {
            for (int j = books[i]; j <= n; j++) {
                f[j] += f[j - books[i]];
            }
        }
        System.out.println(f[n]);
    }
}
